package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.RoleMenu;
import com.antdesignbackend.backend.entity.entityVo.RoleMenuVo;
import com.antdesignbackend.backend.mapper.RoleMenuMapper;
import com.antdesignbackend.backend.service.RoleMenuService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenu> implements RoleMenuService {
    @Autowired
    RoleMenuMapper roleMenuMapper;

    @Override
    public List<RoleMenuVo> selectRoleMenuList(QueryWrapper<RoleMenuVo> queryWrapper, Page<RoleMenuVo> page) {
        return roleMenuMapper.selectRoleMenuList(queryWrapper, page);
    }
}
